#!/bin/sh
cd $(dirname "$0")
GAMEDIR="$(dirname "$0")"


HOME="$GAMEDIR"

cd $GAMEDIR

./gptokeyb -k "RSDKv5" &
LD_LIBRARY_PATH="$GAMEDIR/lib:$LD_LIBRARY_PATH" SDL_GAMECONTROLLERCONFIG_FILE="./gamecontrollerdb.txt" ./RSDKv5 2>&1 | tee $GAMEDIR/log.txt
kill -9 $(pidof gptokeyb)

